// 路由
var express = require('express');
var router = express.Router();
// 引入controllers中user.js的对象
var usersController = require('../controllers/users.js')

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource 111111');
});

// 路由跳转
router.post('/login' , usersController.login );
router.post('/register' , usersController.register );
router.get('/verify' , usersController.verify );
router.get('/logout' , usersController.logout );
router.get('/getUser' , usersController.getUser );
router.post('/findPassword' , usersController.findPassword );

module.exports = router;
